package com.farm.shop.service;


import com.farm.common.utils.Query;
import com.farm.shop.domain.FarmRoomDO;

import java.util.List;
import java.util.Map;

/**
 * 农家房间表
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-09-06 19:44:49
 */
public interface FarmRoomService {

    FarmRoomDO get(Long id);

    List<FarmRoomDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(FarmRoomDO farmRoom);

    int update(FarmRoomDO farmRoom);

    int remove(Long id);

    int batchRemove(Long[] ids);

    /**
     * 搜索
     *
     * @param keyword 关键字
     * @return List<FarmShopDO>
     */
    List<FarmRoomDO> search(String keyword);

    List<FarmRoomDO> searchName(Map<String, Object> map);

    int searchNameCount(Map<String, Object> map);
}
